// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'report_workid',
        footer: "Foots",
        cnName: '生产报工',
        name: 'ysl_production_report',
        url: "/ysl_production_report/",
        sortName: "report_workid"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"report_work":"","report_workdate":"","codeid":"","working_procedure":"","working_procedurename":"","product_code":"","product_codename":"","product_specifications":"","production_personnel":"","production_starttime":"","production_endtime":"","report_worknumber":"","access_number":"","noaccess_number":"","attachment":"","Auditor":"","AuditStatus":""};
    const editFormOptions = [[{"title":"报工单号","field":"report_work","disabled":true}],
                              [{"title":"时间","field":"report_workdate","type":"datetime"}],
                              [{"dataKey":"工单编号","data":[],"title":"工单号","field":"codeid","type":"select"}],
                              [{"dataKey":"FLH工序字典","data":[],"title":"工序编号","field":"working_procedure","type":"select"}],
                              [{"dataKey":"FLH工序字典","data":[],"title":"工序名称","field":"working_procedurename","type":"select"}],
                              [{"title":"产品编码","field":"product_code","disabled":true}],
                              [{"title":"产品名称","field":"product_codename"}],
                              [{"title":"产品规格","field":"product_specifications"}],
                              [{"title":"生产人员","field":"production_personnel"}],
                              [{"title":"生产开始时间","field":"production_starttime","type":"datetime"}],
                              [{"title":"生产结束时间","field":"production_endtime","type":"datetime"}],
                              [{"title":"报工数量","field":"report_worknumber","type":"number"}],
                              [{"title":"合格数量","field":"access_number","type":"number"}],
                              [{"title":"不合格数量","field":"noaccess_number","type":"number"}],
                              [{"title":"附件","field":"attachment","type":"file"}],
                              [{"title":"审批人","field":"Auditor","disabled":true,"type":"text"}],
                              [{"title":"审批状态","field":"AuditStatus","disabled":true}]];
    const searchFormFields = {"report_work":"","working_procedure":"","production_personnel":""};
    const searchFormOptions = [[{"title":"报工单号","field":"report_work"}],[{"dataKey":"FLH工序字典","data":[],"title":"工序编号","field":"working_procedure","type":"="}],[{"title":"生产人员","field":"production_personnel","type":"like"}]];
    const columns = [{field:'report_workid',title:'主键id',type:'bigint',sort:true,width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'report_work',title:'报工单号',type:'string',width:180,readonly:true,align:'left'},
                       {field:'report_workdate',title:'时间',type:'datetime',width:150,align:'left'},
                       {field:'codeid',title:'工单号',type:'string',bind:{ key:'工单编号',data:[]},width:180,align:'left'},
                       {field:'working_procedure',title:'工序编号',type:'string',bind:{ key:'FLH工序字典',data:[]},width:180,align:'left'},
                       {field:'working_procedurename',title:'工序名称',type:'string',bind:{ key:'FLH工序字典',data:[]},width:180,align:'left'},
                       {field:'product_code',title:'产品编码',type:'string',width:180,readonly:true,align:'left'},
                       {field:'product_codename',title:'产品名称',type:'string',width:180,align:'left'},
                       {field:'product_specifications',title:'产品规格',type:'string',width:180,align:'left'},
                       {field:'production_personnel',title:'生产人员',type:'string',width:180,align:'left'},
                       {field:'production_starttime',title:'生产开始时间',type:'datetime',width:150,align:'left'},
                       {field:'production_endtime',title:'生产结束时间',type:'datetime',width:150,align:'left'},
                       {field:'report_worknumber',title:'报工数量',type:'int',width:110,align:'left'},
                       {field:'access_number',title:'合格数量',type:'int',width:110,align:'left'},
                       {field:'noaccess_number',title:'不合格数量',type:'int',width:110,align:'left'},
                       {field:'attachment',title:'附件',type:'string',width:180,align:'left'},
                       {field:'Auditor',title:'审批人',type:'string',width:180,readonly:true,align:'left'},
                       {field:'AuditStatus',title:'审批状态',type:'string',width:180,readonly:true,align:'left'},
                       {field:'field1',title:'备用字段1',type:'string',width:180,hidden:true,align:'left'},
                       {field:'field2',title:'备用字段2',type:'string',width:180,hidden:true,align:'left'},
                       {field:'field3',title:'备用字段3',type:'string',width:180,hidden:true,align:'left'},
                       {field:'field4',title:'备用字段4',type:'string',width:180,hidden:true,align:'left'},
                       {field:'field5',title:'备用字段5',type:'string',width:180,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}